package com.yugao.fintech.antelope.mps.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yugao.fintech.antelope.base.model.BasePlusPO;
import com.yugao.fintech.antelope.base.tenant.core.DataIsolation;
import lombok.Getter;
import lombok.Setter;

/**
 * 接收者
 *

 */
@Getter
@Setter
@TableName("mps_receiver")
@DataIsolation(filterTenant = true, tableName = "mps_receiver")
public class MsgReceiver extends BasePlusPO {
    @TableId
	private Long id;
	
	/**
	 * 接收者姓名
	 */
	private String name;

	/**
	 * 手机号
	 */
	private String phone;

	/**
	 * 验证状态, 1-未验证, 2-已验证
	 */
	private String phoneStatus;

	/**
	 * 邮箱
	 */
	private String email;

	/**
	 * 验证状态, 1-未验证, 2-已验证
	 */
	private String emailStatus;

	/**
	 * 微信公众号openId
	 */
	private String wxMpOpenId;

	/**
	 * 企业微信openId
	 */
	private String qyWxOpenId;

    public static LambdaQueryWrapper<MsgReceiver> lqw() {
		return Wrappers.lambdaQuery();
	}

	public interface Status {
		/** 已被验证 */
		String VERIFY = "2";
		/** 没有被验证 */
		String NO_VERIFY = "1";
	}
}
